package com.keshan.mapper;

import com.keshan.pojo.BloodPressure;
import com.keshan.pojo.BloodPressureDayAvg;
import com.keshan.pojo.BloodPressureExample;

import java.util.Date;
import java.util.List;

import com.keshan.pojo.BloodPressureHide;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository(value="BloodPressureMapper")
public interface BloodPressureMapper {
    int countByExample(BloodPressureExample example);

    int deleteByExample(BloodPressureExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(BloodPressure record);

    int insertSelective(BloodPressure record);

    List<BloodPressure> selectByExample(BloodPressureExample example);

    List<BloodPressureHide> selectHideByExample(BloodPressureExample example);

    BloodPressure selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") BloodPressure record, @Param("example") BloodPressureExample example);

    int updateByExample(@Param("record") BloodPressure record, @Param("example") BloodPressureExample example);

    int updateByPrimaryKeySelective(BloodPressure record);

    int updateByPrimaryKey(BloodPressure record);

    List<BloodPressureDayAvg> selectEverydayAvg(@Param("beginTime") Date beginTime,
                                                @Param("endTime") Date endTime,
                                                @Param("username")String username);
}